﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NavLine.Aircraft
{
	public partial class AC
	{
		public double heading;
		public double rot;
		public double bank;

		void UpdateHeading(double dt)
		{
			rot = bank * config.ROT;
			heading += rot * dt;
			if (heading > 360)
				heading -= 360;
			else if (heading < 0)
				heading += 360;
		}
	}
}